﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TouchScreen.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Login()
        {
            return View();
        }

        public ActionResult Close()
        {
            Process[] ps = Process.GetProcessesByName("chrome");
            foreach (Process item in ps)
            {
                if (item.ProcessName == "chrome")
                {
                    item.Kill();
                }
            }
            return View();
        }

    }
}
